import request from '@/api/basic/http'

//分类ID查询商品
export function getGoods(data) {
  return request({
    url: '/good/find_by_class_id',
    method: 'post',
    data
  })
} 
//商品ID查询商品
export function getGood(data) {
  return request({
    url: '/good/find_by_good_id',
    method: 'post',
    data
  })
} 
//商品ID查询规则
export function getSku(data) {
  return request({
    url: '/good/find_sku_by_name',
    method: 'post',
    data
  })
} 

//主要分类
export function goodClass() {
  return request({
    url: '/good/good_class_index',
    method: 'get',
    
  })
} 
//根据分类ID查询子分类
export function goodChildClass(data) {
  return request({
    url: '/good/good_child_class',
    method: 'post',
    data
  })
} 